<?php
class Pageley_Controller_TransactionalForm extends Pageley_Controller_Form {

	private $unitOfWork;

	public function __construct($views, $commandClassName, $unitOfWork) {
		parent::__construct($views, $commandClassName);
		$this->unitOfWork = $unitOfWork;
	}

    protected function createCommand() {
        $this->unitOfWork->start();
    	return Pageley_Util_Reflection::newInstance($this->commandClassName, array($this->unitOfWork));
    }
}